package com.kurumi.service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.solr.client.solrj.SolrServerException;

import com.kurumi.pojo.MedicalRecord;
import com.kurumi.query.InPatientMedicalRecordQuery;
import com.kurumi.query.StatisticsAnalysisQuery;
import com.kurumi.solr.MedicalRecordSolr;

public interface SolrService {

	int upadteIndex(String visitGuid,Map<String, Object> jsonMap) throws SolrServerException, IOException;

	List<MedicalRecordSolr> query(InPatientMedicalRecordQuery query);

	List<Map<String,String>> queryExportExcel(InPatientMedicalRecordQuery query,List<String> cols);

	List<Map<String,Object>> diagTop10Facet(StatisticsAnalysisQuery params);

	List<Map<String,Object>> operateTop10Facet(StatisticsAnalysisQuery params);

	List<Map<String,Object>> eighteenKeyDiseases(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,Object>> unplanReHospital(StatisticsAnalysisQuery params) throws SolrServerException, IOException;
	List<Map<String,Object>> unplanReOperate(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,String>> eighteenKeyDiseasesForExport(StatisticsAnalysisQuery params) throws SolrServerException, IOException;
	List<Map<String,String>> unplanReHospitalExportExcel(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,String>> unplanReOperateExportExcel(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,Object>> sevenKeySurgery(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,String>> sevenKeySurgeryForExport(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,Object>> tertiaryHospitalKeySurgery(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,String>> tertiaryHospitalKeySurgeryForExport(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,Object>> tertiaryHospitalMalignantTumor(StatisticsAnalysisQuery params) throws SolrServerException, IOException;

	List<Map<String,String>> tertiaryHospitalMalignantTumorForExport(StatisticsAnalysisQuery params) throws SolrServerException, IOException;


}
